package com.aistar.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Resume implements Serializable {
    private Integer id;

    private String name;

    private String sex;

    private String resIdentity;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;

    private String area;

    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    private String email;

    private String expectIndustry;

    private String expectJob;

    private String expectCity;

    private String salaryRequirement;

    private String resState;

    private String resumeAvatar;

    private String url;

    private Integer workYear;

    private Date updateTime;

    private Integer frequency;

    private Integer employeeId;

    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    private Integer privacy;

    private String summary;

    public static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getResIdentity() {
        return resIdentity;
    }

    public void setResIdentity(String resIdentity) {
        this.resIdentity = resIdentity == null ? null : resIdentity.trim();
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getBirthday() {
        return birthday;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getExpectIndustry() {
        return expectIndustry;
    }

    public void setExpectIndustry(String expectIndustry) {
        this.expectIndustry = expectIndustry == null ? null : expectIndustry.trim();
    }

    public String getExpectJob() {
        return expectJob;
    }

    public void setExpectJob(String expectJob) {
        this.expectJob = expectJob == null ? null : expectJob.trim();
    }

    public String getExpectCity() {
        return expectCity;
    }

    public void setExpectCity(String expectCity) {
        this.expectCity = expectCity == null ? null : expectCity.trim();
    }

    public String getSalaryRequirement() {
        return salaryRequirement;
    }

    public void setSalaryRequirement(String salaryRequirement) {
        this.salaryRequirement = salaryRequirement == null ? null :salaryRequirement.trim();
    }

    public String getReState() {
        return resState;
    }

    public void setReState(String resState) {
        this.resState = resState == null ? null : resState.trim();
    }

    public String getResumeAvatar() {
        return resumeAvatar;
    }

    public void setResumeAvatar(String resumeAvatar) {
        this.resumeAvatar = resumeAvatar == null ? null : resumeAvatar.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Integer getWorkYear() {
        return workYear;
    }

    public void setWorkYear(Integer workYear) {
        this.workYear = workYear;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFrequency() {
        return frequency;
    }

    public void setFrequency(Integer frequency) {
        this.frequency = frequency;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public Integer getPrivacy() {
        return privacy;
    }

    public void setPrivacy(Integer privacy) {
        this.privacy = privacy;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary == null ? null : summary.trim();
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", sex=").append(sex);
        sb.append(", resIdentity=").append(resIdentity);
        sb.append(", birthday=").append(birthday);
        sb.append(", area=").append(area);
        sb.append(", phone=").append(phone);
        sb.append(", email=").append(email);
        sb.append(", expectIndustry=").append(expectIndustry);
        sb.append(", expectJob=").append(expectJob);
        sb.append(", expectCity=").append(expectCity);
        sb.append(", salaryRequirement=").append(salaryRequirement);
        sb.append(", resState=").append(resState);
        sb.append(", resumeAvatar=").append(resumeAvatar);
        sb.append(", url=").append(url);
        sb.append(", workYear=").append(workYear);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", frequency=").append(frequency);
        sb.append(", employeeId=").append(employeeId);
        sb.append(", status=").append(status);
        sb.append(", privacy=").append(privacy);
        sb.append(", summary=").append(summary);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}